<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/lottery/css/lottery.css" type="text/css" rel="stylesheet" />
<title>答题抽奖系统</title>
</head>
<body>
	<center>
    <div class="m">
    	
        <div class="m1">
        	<div class="mlogo">
		    	<a href="<c:url value="/index.do"/>">
					<img alt="返回首页" src="/lottery/images/younger_logo.gif"/>
				</a>
			</div>
        	活动名称: &nbsp;&nbsp;"<c:out value="${lotteryPhase.phaseName}"/>"
        </div>
        <div class="m2">
            <div class="mz">
                <div class="mz1">
                    <div class="mz_content" style="margin-top:10px;">
                        开始时间：<fmt:formatDate value="${lotteryPhase.gmtStart}"/><br />
                        结束时间：<fmt:formatDate value="${lotteryPhase.gmtEnd}"/><br />
                        <span class="mzy10 font5">
                            <a href="<c:url value="/index.do"/>" target="_parent">返回首页</a> 
                            <a href="<c:url value="/user/myWinner.do"/>" target="initLottery">我的中奖记录</a>
                        </span>
                    </div>
                </div>
               
                <div class="mz2">
                    <div class="mz_title">最近中奖名单</div>
                    <div class="mz_content">
                        <div class="font14">
                            <marquee direction='up' scrollamount="1" align="middle" hspace="5" vspace="3" height="205">
                          
                                <c:forEach var="item" items="${winnerList}">
                                	<c:out value="${item.username}"/> 获得 <c:out value="${item.prizeName}"/> <br/>
                                </c:forEach>
                            
                            </marquee>
                        </div>
                    </div>
                </div>
            </div>
            <iframe align="center" src="<c:url value="/user/initQuestion.do"/>?phaseId=<c:out value="${lotteryPhase.phaseId}"/>" id="initLottery" name="initLottery" frameborder="0" style="float:left; width:673px;height:576px;overflow-y:none;overflow-x:none;border:0px;padding:0;margin-left:20px;margin-top:9px;background:url(fi/lottery/images/bg2.jpg)" scrolling="no"></iframe>
            <div class="cf"></div>
        </div>
        </div>
        </center>
</body>
</html>